package com.sgj.prototype.deepclone;

import lombok.*;

import java.io.Serializable;

/**
 * 原型模式
 * 深拷贝
 * @Author: Guoji Shen
 * @Date: 2021/11/12 14:51
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DeepCloneableTarget implements Serializable, Cloneable {

    private static final long serialVersionUID = 1L;

    private String cloneName;

    private String cloneClass;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}